import java.util.Arrays;
import java.util.Comparator;

public class test {
    public static void main121(String[] args) {
        int[][]arr5=new int[2][];
        arr5[0]=new int[5];
        arr5[1]=new int[6];
        System.out.println(Arrays.toString(arr5[0]));
        System.out.println(Arrays.toString(arr5[1]));
    }
    public static void main91(String[] args) {
        int[][]arr4={{7,8,9},{1,4,6}};
        System.out.println(Arrays.toString(arr4[0]));

        System.out.println(Arrays.toString(arr4[1]));


    }
    public static void main90(String[] args) {
        int[][]arr4={{7,8,9},{1,4,6}};
        for (int[]arr: arr4) {
            for (int x: arr) {
                System.out.print(x+" ");

            }
            System.out.println();

        }

    }
    public static void main89(String[] args) {
        int[][]arr4={{7,8,9},{1,4,6}};
        for (int i = 0; i < arr4.length; i++) {
            for (int j = 0; j < arr4[i].length; j++) {
                System.out.print(arr4[i][j]+" ");

            }
            System.out.println();

        }
    }

    public static void main12(String[] args) {
        int[][]arr=new int[2][3];
        int[][]arr2={{1,2,3},{4,5,6}};
        int[][]arr3=new int[2][];
        System.out.println(Arrays.deepToString(arr2));



    }


    public static void main137(String[] args) {
        int[]arr={1,2,3,4,5,6};
        int[]arr2=Arrays.copyOf(arr,3);
        System.out.println(Arrays.toString(arr2));
    }

    public static void tiaoz(int[]d)
    {
        d[0]=0;
    }
    public static void main1000(String[] args) {
        int[]c={1,2,6,8,9};
        tiaoz(c);
        System.out.println(Arrays.toString(c));
    }
    public static void main39(String[] args) {
        int[]a={7,8,9,1,2};
        int[]b={1,2,3,4,5};
        a=b;
        System.out.println(Arrays.toString(a));
        System.out.println(Arrays.toString(b));

    }
    public static void main345(String[] args) {
        int[]arr={1,2,3,4,5,6};//静态初始化
        int[]arr2=new int[20];//动态初始化
        int[]arr3=new int[5]; // 5个元素全部被初始化为0；

    }
    public static void main126(String[] args) {
        int[]arr14={1,8,7,3,4};
        for (int i = 0; i < arr14.length; i++) {
            System.out.print(arr14[i]+" ");

        }
    }

    public static void main124(String[] args) {
        int[]arr13={1,7,6,9,2};
        String b=Arrays.toString(arr13);
        System.out.println(b);
    }
    public static void main123(String[] args) {
        int[]arr12={1,5,6,9,2};
        for (int x: arr12) {
            System.out.print(x+" ");

        }

    }
    public static void main191(String[] args) {
        int[]arr11={8,1,5,2,3};
        Arrays.fill(arr11,9);
        System.out.println(Arrays.toString(arr11));
    }
    public static void main45(String[] args) {
        int[]arr10={8,1,5,2,3};
        Arrays.fill(arr10,0,3,2);
        System.out.println(Arrays.toString(arr10));

    }
    public static void main71(String[] args) {
        int[]arr8={2,5,6,8,9};
        //int[]arr9=array.clone();
        //System.out.println(Arrays.toString(arr9));

    }
    public static void main101(String[] args) {
        int[]arr7={1,7,4,8,9,10};
        Arrays.sort(arr7);
        System.out.println(Arrays.toString(arr7));
    }
    public static void main78(String[] args) {
        int[]arr6={1,7,4,8,9,10};
        int b=Arrays.binarySearch(arr6,3);
        System.out.println(b);

    }



    public static void main777(String[] args) {
        int[]arr5={1,7,4,8,9,10};

        int[]arr4=Arrays.copyOfRange(arr5,2,5);

        System.out.println(Arrays.toString(arr4));

    }
    public static void main156(String[] args) {
        int[]arr={1,2,3,4,5};
        int[]arr1=new int[arr.length];
        System.arraycopy(arr,0,arr1,1,3);
        System.out.println(Arrays.toString(arr));
        System.out.println(Arrays.toString(arr1));

    }
    public static void main1(String[] args) {
        int[]arr={1,2,3,4,5,6};
        int[]arr2= Arrays.copyOf(arr,arr.length);
        System.out.println(Arrays.toString(arr2));

    }

    public static void main2(String[] args) {
        int[]arr={1,2,3,4,5,6};
        int[]arr2= Arrays.copyOf(arr,2*arr.length);
        System.out.println(Arrays.toString(arr2));
    }
}
